const Mock = require('mockjs')

const data = Mock.mock({
    'users|20': [{
        id: '@id',
        name: '用户名',
        'status|1': ['待审核'],
        create_time: '@datetime',
    }]
})

module.exports = [
    {
        url: '/vue-admin-template/user/getApplyList',
        type: 'get',
        response: config => {
            const users = data.users;
            return {
                code: 20000,
                data: {
                    count: users.length,
                    users: users
                }
            }
        }
    }
]